import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../views/Home.vue'
import Classlsy from '@/views/Classlsy.vue'
import Cart from '@/views/Cart.vue'
import My from '@/views/My.vue'
import Dingdan from '@/views/Dingdan.vue'

const routes = [
  {
    path: '/home',
    component: Home
  },
  {
    path: '/classlsy',
    component: Classlsy
  },
  {
    path: '/cart',
    component: Cart
  },
  {
    path: '/my',
    component: My
  },
  {
    path: '/dingdan',
    component: Dingdan
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
